package com.javaketang.dky.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javaketang.dky.entity.EasybuyProductCategory;
import com.javaketang.dky.mapper.EasybuyProductCategoryMapper;
import com.javaketang.dky.service.EasybuyProductCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author dky
 * @since 2021-07-06
 */
@Service
public class EasybuyProductCategoryServiceImpl extends ServiceImpl<EasybuyProductCategoryMapper, EasybuyProductCategory> implements EasybuyProductCategoryService {

    /**
     * 创建分类对象
     */
    @Resource
    private EasybuyProductCategoryMapper categoryMapper;

    @Override
    public List queryAllProductCategory(Page page) {
        return categoryMapper.queryAllProductCategory(page);
    }

    @Override
    public List<EasybuyProductCategory> queryCategoryById(Integer id) {
        return categoryMapper.queryCategoryById(id);
    }

    @Override
    public List queryProduct(Page page,Integer id, Integer type) {
        return categoryMapper.queryProduct(page,id,type);
    }

    @Override
    public List queryProductClassify(List<Integer> list) {
        return categoryMapper.queryProductClassify(list);
    }


}
